﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZkSurvey.Common.SurveyMgr
{
    public class Participation
    {
        public int Id { get; set; }
        public int SurveyId { get; set; }
        public int ExternalUserId { get; set; }
        public bool? IsValid { get; set; }
        public DateTime JoinTime { get; set; }
        public string ValidStatus
        {
            get
            {
                if (!IsValid.HasValue)
                    return "待审核";
                else
                {
                    if (IsValid.Value)
                        return "有效";
                    else
                        return "无效";
                }
            }
        }
        public ExternalUser User { get; set; }
    }
}
